package org.example.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.mongodb.core.mapping.MongoId;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @TableName replay
 */
@TableName(value = "replay")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Replay implements Serializable {
    @MongoId
    @TableId
    private Long id;

    private Integer invitationId;

    private String replayInfo;

    private Long createUserId;
    @TableField(exist = false)
    private Account account;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "Asia/Shanghai")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;


}